package com.yesun.dcm.remote.netty;

import com.yesun.dcm.commons.rpc.URL;
import com.yesun.dcm.remote.Server;
import com.yesun.dcm.remote.Transporter;

import java.util.Map;

/**
 * @author chunmingdeng, 2017/10/3 Create.
 * @version 1.0
 * @copyright (c) YESUN. All Rights Reserved.
 * @description:
 */
public class NettyTransporter implements Transporter {

    /**
     * use NettyServer
     * @param url
     * @param map
     * @return
     */
    @Override
    public Server bind(URL url, Map<String, Object> map) {
        return new NettyServer(url, map);
    }
}
